#include "trap.h"
   .set noat
   .globl main
   .data 
   data1: .word 0x11223344
   .text
main:
   # GPRs
   lui $at, 0x1234
   ori $at, $at, 0x5678    # $at=0x12345678 ID-EXE(1)
   addi $t1, $at, 0x1111   # $t1=0x12346789 ID-MEM(2)
   andi $t2, $at, 0x0fff   # $t2=0x00000678 ID-WB(3)
   ori $t1, $t2, 0x9fff    # $t1=0x00009fff ID-EXE(1)
   slti $t1, $t2, 0x1234   # $t2=0x00000001 ID-MEM(2)

   # MULT HILO
   lui $t0, 0xabcd
   ori $t0, $t0, 0xef01    # $t0=0xabcdef01 ID-EXE(1)
   mult $at, $t0   # ID-EXE(1) ID-MEM(2) 
   mfhi $t1        # $t1=0xfa034432 EXE-MEM(1)
   mflo $t2        # $t2=0x55065e78 EXE-WB(2)
   
   # mthi mtlo
   mthi $t2    # $hi=0x55065e78 
   mfhi $t1    # $t1=0x55065e78 EXE-MEM(1)
   mtlo $at    # $lo=0x12345678 
   mflo $t2    # $t2=0x12345678 EXE-MEM(1)

   # GPRs
   add $t1, $at, $t2   # $t1=0x2468acf0
   sub $t2, $t1, $t0   # $t2=0x12345678 ID-EXE(1)
   slt $t2, $t1, $t2   # $t2=0x00000001 ID-EXE(1) ID-MEM(2)
   sllv $t1, $at, $t2  # $t1=0x2468acf0
   sra $t2, $t1, 0x08  # $t2=0x002468ac 

   HIT_GOOD_TRAP		# stop temu


